home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / Re FW_CTextBoxShape.3 < prev    next >
Encoding:
Internet Message Format  |  1996-09-19  |  1.0 KB  |  [TEXT/ttxt]

  1. Subject:     Re: FW_CTextBoxShape
  2. Sent:        9/9/96 5:28 PM
  3. Received:    9/9/96 5:28 PM
  4. From:        bobc@bcstec.ca.boeing.com (Bob Carpenter)
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. > It sounds like you want the behavior of FW_CTextBoxShape::RenderTextBox() 
  10. > instead of FW_CTextBoxShape::RenderText(). Think of RenderText as the 
  11. > equivalent of a Quickdraw DrawString().
  12.  
  13.    That's true. RenderTextBox is what's used in Hello part. The point is that
  14.    it doesn't work as stated.
  15.  
  16.    Try my example with the standard Hello part, here it is again:
  17.  
  18.    Drag&Drop the following in Hello part:
  19.  
  20.      Line1
  21.      Line2
  22.      Line3
  23.  
  24.    You'll see that RenderTextBox() displays the following:
  25.  
  26.      Line1Line2Line3
  27.  
  28.    Mary claims that it works correctly. My experience is that it does
  29.    not - it ignores \r's.
  30.  
  31.    Either I'm crazy, or I've got a different RenderTextBox() than
  32.    Mary.
  33.  
  34. --BobC
  35.  
  36.   Bob Carpenter
  37.   Boeing Commercial Airplanes
  38.   bob.carpenter@boeing.com